# -*- coding: utf-8 -*-

# 生成器
def gen_test():
    for i in range(10):
        yield i

if __name__ == '__main__':
    gen = gen_test()
    print type(gen)
    print gen
    for i in gen:
        print i